Temporal 适配 oceanbase 过程
背景
因为业务需要,temporal 需要支持多数据源,例如 oceanbase-ce
过程
克隆项目
temporal
本地启动 oceanbase-ce
docker run -p 2881:2881 --name oceanbase-ce -e OB_TENANT_NAME=temporal -e OB_TENANT_PASSWORD=temporal -e OB_SYS_PASSWORD=temporal -d oceanbase/oceanbase-ce:4.3.5-lts
使用 Jetbrains Datagrip 链接
用户名和一般的 MySQL 不同,是角色@用户名
- 用户名:
root@temporal - 密码:
temporal - 端口号:
2881
本地初始化 temporal 数据库
SQL_USER=root@temporal SQL_PASSWORD=temporal SQL_PORT=2881 make install-schema-mysql